﻿<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeFile="Work_Orders.aspx.cs"
    Inherits="client_Work_Orders" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Work Order</title>
    <link href="../styles/client.css" rel="stylesheet" type="text/css" />
    <link href="../styles/lytebox.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="../styles/jquery_themes/redmond/jquery-ui-1.8.5.custom.css" rel="stylesheet"
        type="text/css" />

    <script src="../javascripts/lytebox.js" type="text/javascript"></script>

    <script src="../javascripts/jquery-1.4.3.min.js" type="text/javascript"></script>

    <script src="../javascripts/jquery-ui-1.8.5.custom.min.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(function() {
            $(".datepicker").datepicker({ dateFormat: 'dd/mm/yy' });
        });  
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="content_area">
        <h2>
            Plant:
            <asp:Label ID="sitename" runat="server" Text="Label"></asp:Label>
        </h2>
        <h3>
            Machine:
            <asp:Label ID="machinename" runat="server" Text="MachineNameLabel"></asp:Label>
            <asp:Label ID="machineid" runat="server" Text="MachineIDLabel" Visible="false"></asp:Label>
        </h3>
        <div class="form_box1">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <asp:PlaceHolder ID="PlaceHolder1" runat="server" Visible="false">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <Triggers>
                        <asp:PostBackTrigger ControlID="submitButton" />
                        <asp:PostBackTrigger ControlID="UpdateButton" />
                        <asp:PostBackTrigger ControlID="EditButton" />
                        <asp:PostBackTrigger ControlID="defaultsearch_button" />
                        <asp:PostBackTrigger ControlID="prev_wo" />
                        <asp:PostBackTrigger ControlID="next_wo" />
                        <asp:PostBackTrigger ControlID="createbutton" />
                    </Triggers>
                </asp:UpdatePanel>
            </asp:PlaceHolder>
            <asp:PlaceHolder ID="MessagePlaceHolder" runat="server" Visible="false">
                <div class="message">
                    <asp:Label ID="wo_message" runat="server" />
                </div>
            </asp:PlaceHolder>
        </div>
        <div >
            <div >
 
     
                    <asp:LinkButton ID="prev_wo" runat="server" OnClick="preClicked" 
                        CssClass="Li_button" Height="24px" Width="178px">Previous Work Order</asp:LinkButton>
           &nbsp;
           
                    <asp:LinkButton ID="next_wo" runat="server" OnClick="nextwoClicked" 
                        CssClass="Li_button" Height="23px" Width="155px">Next Work Order</asp:LinkButton>
        &nbsp;
              
            
                    <asp:LinkButton ID="createbutton" OnClick="createbuttonclicked" Text="Create New W/O"
                        runat="server" CssClass="Li_button" Height="21px" Width="161px"></asp:LinkButton>
                  
                    <br />
                </div>
                <br />
                <div>
                <asp:Table ID="Table_Action" runat="server" Width="542px">
                    <asp:TableRow>
                        <asp:TableCell>
                        <asp:TextBox ID="keyword_TB" runat="server" CssClass="fields1"></asp:TextBox>
                    

</asp:TableCell>
                        <asp:TableCell>
                        <asp:Button ID="defaultsearch_button" runat="server" Text="Search by W/O No." OnClick="defaultSearch_clicked"
                            CssClass="buttons1"></asp:Button>
                    

</asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>

                    </asp:TableCell>
                        <asp:TableCell>
                        <asp:Button ID="searchbutton" runat="server" Text="Advanced Search" OnClick="searchbuttonClicked"
                            CssClass="buttons1"></asp:Button>
                    

</asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell CssClass="label">
                    Date :
                    </asp:TableCell>
                        <asp:TableCell>
                        <asp:Label ID="date_lb" runat="server"></asp:Label>
                        

<asp:TextBox ID="WODateTime" runat="server" class="datepicker" Visible="false">
                        </asp:TextBox>
                    

</asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell CssClass="label">
                    Work Order No. :
                    </asp:TableCell>
                        <asp:TableCell>
                        <asp:Label ID="wo_lb" runat="server"></asp:Label>
                        

<asp:TextBox ID="WONumber" runat="server" Visible="false" CssClass="fields1">
                        </asp:TextBox>
                    

</asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell CssClass="label">
                    Status :
                    </asp:TableCell>
                        <asp:TableCell>
                        <asp:Label ID="Statuslabel" Text="status" runat="server" />
                        

<asp:CheckBox Text="Mark As Completed" ID="status_checkbox" runat="server" Visible="false" />
                    

</asp:TableCell></asp:TableRow><asp:TableRow><asp:TableCell CssClass="label">
                    Description :
                    </asp:TableCell><asp:TableCell>
                        <asp:Label ID="desc_lb" runat="server"></asp:Label>
                        

<asp:TextBox ID="WODescription" TextMode="MultiLine" Visible="false" runat="server"
                            CssClass="fields1"></asp:TextBox>
                    

</asp:TableCell></asp:TableRow><asp:TableRow><asp:TableCell CssClass="label">
                    Action :
                    </asp:TableCell><asp:TableCell>
                        <asp:Label ID="action_lb" runat="server"></asp:Label>
                        

<asp:TextBox ID="action_tb" Visible="false" runat="server" TextMode="MultiLine" CssClass="fields1"></asp:TextBox>
                    

</asp:TableCell></asp:TableRow><asp:TableRow><asp:TableCell>

                    </asp:TableCell><asp:TableCell>
                        <%--  <asp:CheckBox ID="status" Text="Completed" runat=server/>--%>
                        <asp:Button ID="EditButton" runat="server" CssClass="buttons1" Text="Edit" OnClick="EditButton_click" />
                        

<asp:Button ID="submitButton" runat="server" Text="Submit" OnClick="submitButton_Click"
                            CssClass="buttons1" Visible="false" />
                        

<asp:Button ID="UpdateButton" runat="server" Text="Update" OnClick="UpdateButton_Click"
                            Visible="false" CssClass="buttons1" />
                    

</asp:TableCell></asp:TableRow></asp:Table></div></div></div></div></form></body></html>